.chat_main {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
  position: relative;
  .no_reply {
    position: absolute;
    z-index: 999;
    top: 30px;
    right: 30px;
    background-color: var(--ep-bg-color-overlay);
    // color: var(--el-text-color-secondary);
    font-size: 12px;
    border-radius: 2px;
    padding: 4px 12px;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.4s;
    &:hover {
      background-color: var(--ep-color-primary);
      color: var(--ep-bg-color);
    }
  }
}
:deep(.ep-image-viewer__mask) {
  z-index: 99999;
}
.chat_box_input {
  width: 100%;
  height: 270px;
  background-color: var(--ep-bg-color);
  border-radius: 10px;
  padding: 10px;
  padding-top: 0;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  .change_main_text {
    width: 100%;
    height: 50px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    border-bottom: 2px dashed var(--el-border-color);
    .carrier_item {
      // max-width: 300px;
      // overflow: hidden;
      // // overflow: visible; //超出的文本隐藏
      // text-overflow: ellipsis; //溢出用省略号显示
      // white-space: nowrap; //溢出不换行
      background-color: var(--ep-border-color-light) !important;
      border-color: var(--ep-border-color-light) !important;
      color: var(--ep-text-color-primary);
      .span_text {
        max-width: 300px;
        overflow: hidden;
        // overflow: visible; //超出的文本隐藏
        text-overflow: ellipsis; //溢出用省略号显示
        white-space: nowrap; //溢出不换行
      }
      // padding: 4px 16px;
      // border-radius: 4px;
      // font-size: 12px;
      // position: relative;
      // .del_close_box {
      //   position: absolute;
      //   top: 50%;
      //   right: 4px;
      //   margin-top: -6px;
      //   background-color: var(--ep-text-color-regular);
      //   color: var(--el-bg-color-overlay);
      //   width: 12px;
      //   height: 12px;
      //   border-radius: 50%;
      //   display: flex;
      //   align-items: center;
      //   justify-content: center;
      //   overflow: visible;
      // }
    }
  }
  .ribbon_box {
    width: 100%;
    height: 35px;
    // background-color: var(--el-bg-color-page);
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding-left: 20px;
  }
  .input_text {
    width: 100%;
    flex: 1;
    .ep-textarea__inner {
      height: 100% !important;
      box-shadow: 0 0 0 0;
    }
  }
  .send_btn_list {
    text-align: right;
    font-size: 14px;
    color: var(--el-text-color-placeholder);
  }
  .image_text {
    width: 18px;
    height: 18px;
    display: inline-block;
  }
  // padding- 15px;
}
.user_main {
  width: 100%;
  flex: 1;
  //   background-color: #eee;
  overflow: hidden;
  padding-right: 16px;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  .text_list {
    flex: 1;
    width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
  }
}

.chat_item_main {
  //   width: 100%;
  overflow: visible;
  max-width: 65%;
  margin-bottom: 20px;
  padding: 5px 0;
  // overflow: hidden;
  position: relative;
  //   display: flex;
  //   justify-content: flex-start;
  //   align-items: center;
  .chat_name {
    font-size: 14px;
    margin: 0 10px;
    margin-left: 0;
  }
  .chat_time,
  .chat_yarn {
    margin: 0 5px;
    font-size: 14px;
    color: var(--el-text-color-secondary);
  }
  .text_content {
    background-color: var(--ep-bg-color-overlay);
    width: fit-content;
    line-height: 24px;
    padding: 2px 4px 2px 4px;
    border-radius: 4px;
    // margin-top: 4px;
    font-size: 14px;
    max-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    // overflow: hidden;
  }
  //   &.r_show,
  &.l_show {
    margin-right: auto;
    // background-color: #a75252;
    .item_top {
      display: flex;
      justify-content: flex-start;
      align-items: center;
      .over_icon {
        color: var(--ep-color-primary);
      }
      .await_icon {
        color: var(--ep-color-warning);
      }
    }
    .item_content {
      margin-top: 10px;
      padding-left: 10px;
      width: fit-content;
      max-width: 100%;
      overflow: hidden;
    }
    .text_content {
      cursor: pointer;
      text-align: left;
      display: block;
    }
  }
  .cite_box {
    width: fit-content;
    padding: 5px;
    border-radius: 5px;
    color: var(--ep-text-color-secondary);
    background-color: var(--ep-bg-color-page);
    font-size: 12px;
    .cite_text_l {
      text-align: start;
    }
    .cite_text_r {
      text-align: end;
    }
    .cite_text {
      padding: 0 10px 0 40px;
    }
  }
  &.r_show {
    margin-left: auto;
    // div {

    // }
    .r_item_top {
      display: flex;
      align-items: center;
      justify-content: flex-end;
    }
    .item_content {
      margin-left: auto;
      width: fit-content;
      padding-right: 15px;
      max-width: 100%;
      overflow: hidden;
      text-align: right;
    }
    .text_content {
      background-color: var(--ep-bg-color-overlay);
      margin-left: auto;
      word-wrap: break-word;
      word-break: normal;
      display: block;
      text-align: left;
      margin-top: 10px;
      padding: 4px 14px;
    }
    .cite_box {
      margin-left: auto;
    }
    .image_content {
      margin-left: auto;
      margin-top: 4px;
      width: fit-content;
    }
  }
}
.customer_list_transceiver {
  padding-left: 24px;
  text-align: left;
  flex: 1;
  width: 100%;
  overflow-y: auto;
  overflow-x: hidden;
}
.type_box {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-top: 10px;
  .ep-button {
    margin-left: 20px;
  }
  .size_12 {
    font-size: 12px;
  }
}
.replied {
  background-color: var(--ep-color-primary);
  color: var(--ep-bg-color) !important;
  padding: 2px 4px;
  border-radius: 2px;
  transform: scale(0.8);
}
.no_replied {
  cursor: pointer;
  background-color: var(--el-text-color-placeholder);
  color: var(--ep-bg-color) !important;
  transform: scale(0.8);
  padding: 2px 4px;
  border-radius: 2px;
  &:hover {
    background-color: var(--ep-color-success);
  }
}

.item_content {
  overflow: visible !important;
  position: relative;
  z-index: 9;
  &:hover {
    .wu_box {
      opacity: 1;
    }
  }
}
.wu_box {
  position: absolute;
  overflow: visible;
  transition: all 0.4s;
  top: -2px;
  right: -120px;
  text-align: left;
  // font-size: 12px;
  margin-top: 5px;
  z-index: 9;
  opacity: 0;

  span {
    background-color: var(--ep-bg-color-overlay);
    display: inline-block;
    padding: 2px 10px !important;
    border-radius: 2px;
    font-size: 10px !important;
    transform: scale(0.9);
    width: auto;
    cursor: pointer;
  }
  .back_text {
    background-color: var(--ep-color-primary);
    color: var(--ep-bg-color-page);
  }
}
.page_box {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 30px;
  margin-bottom: 20px;
}
